import "./assets/main.scss";
import "element-plus/dist/index.css";

import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus"; // 在需要的地方import
import Loading from "@/components/Loading";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import * as echarts from "echarts";
import vue3SeamlessScroll from "vue3-seamless-scroll";

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
//不使用mock 请注释掉
import { mockXHR } from "@/mock/index";
mockXHR();
app.use(ElementPlus, { size: "small" });
app.use(createPinia());
app.use(router);
app.use(echarts);
app.use(Loading);
app.use(vue3SeamlessScroll);
app.mount("#app");
